@import '../styles/mixins.less';

.nselect-content {
    position: relative;
    display: inline-block;
    .nselect-title {
      padding-left: 18px;
      padding-right: 18px;
      font-weight: 500;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      line-height: 44px;
      width: 138px;
      box-sizing: border-box;
      .ellipsis(1);
      .nselect-append {
        margin-right: 12px;
      }
    }
    .nselect-options {
      position: absolute;
      background: #ffffff;
      box-shadow: 0px 4px 10px 0px rgba(39, 38, 54, 0.2);
      border-radius: 22px;
      overflow: hidden;
      top: 0;
      max-height: 165px;
      z-index: 100;
      width: 100%;
      box-sizing: border-box;
  
      .nselect-select {
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0px 0px 10px 0px rgba(39, 38, 54, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
  
        line-height: 24px;
      }
      .nselect-select-box {
        overflow: auto;
        max-height: 120px;
        .scrollbar();
        .nselect-item {
          margin-left: 4px;
          margin-right: 4px;
          margin-bottom: 4px;
          padding: 8px 14px;
          line-height: 24px;
          .ellipsis(1);
          cursor: pointer;
          color: #333;
          &:hover {
            background-color: rgba(0, 0, 0, 0.06);
            color: #333;
          }
          &:last-child {
            border-bottom-left-radius: 22px;
            border-bottom-right-radius: 22px;
          }
        }
        .active {
          background-color: black;
          color: #fff;
          &:hover {
            background-color: black;
            color: #fff;
          }
        }
      }
    }
    .nselect-show {
      display: none;
    }
  }
  
  .nselect-content-light {
    .nselect-title {
      border-radius: 10px;
      background-color: #f4f4f7;
      padding-left: 11px;
      font-weight: normal;
      box-sizing: border-box;
    }
    .nselect-options {
      border-radius: 10px;
      width: 100%;
      box-sizing: border-box;
      .nselect-select {
        box-shadow: none;
        border-bottom: 1px solid #ddd;
        padding-left: 11px;
      }
      .nselect-select-box {
        .nselect-item {
          &:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
          }
        }
      }
    }
  }
  
  .nselect-content-dark {
    
    .nselect-title {
      border-radius: 4px;
      border: 1px solid #333;
      padding-left: 11px;
      box-sizing: border-box;
    }
    .nselect-options {
      border-radius: 4px;
      border: 1px solid #333;
      width: 100%;
      box-sizing: border-box;
      .nselect-select {
        box-shadow: none;
        border-bottom: 1px solid #ddd;
        padding-left: 11px;
      }
      .nselect-select-box {
        .nselect-item {
          &:hover {
            background-color: rgba(0, 0, 0, 0.06);
            color: #333;
          }
          &:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
          }
        }
        .active {
          background-color: #f4f4f7;
          color: #333;
          &:hover {
            background-color: #f4f4f7;
            color: #333;
          }
        }
      }
    }
  }
  